import dt from '@dt/dt'
import server from '@dt/server/dt'

const api = {
  list: server.api().post('/dt-marketing/note/getNoteWebList'),
  off: server.api().get('/dt-marketing/note/updateNoteOffShelf'),
  exportList: server.api().post('/dt-marketing/note/getNoteWebListExport').tag('downloadCenter')
}

function list(info) {
  return api.list.fetch(info)
}

function off(noteId) {
  return api.off.fetch({ noteId })
}

function exportList(info) {
  return api.exportList.fetch(info)
}

export default {
  list,
  off,
  exportList
}
